package com.heisen.file;


import com.heisen.base.annotation.EnableXmBase;
import com.heisen.security.annotation.EnableXmAuthExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableXmBase
@EnableDiscoveryClient  //应用程序注册到服务注册中心中
@SpringBootApplication
@EnableXmAuthExceptionHandler // 全局异常
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限注解
@MapperScan("com.heisen.file.mapper")
public class FileApplication {
    public static void main(String[] args) {
        SpringApplication.run(FileApplication.class, args);
    }

}
